﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Windvoice.Blog.Model
{
    public class KeyWordInfo
    {
        private int _ID;
        private string _Value;
        private int _Type;
        private int _ArticleID;

        public KeyWordInfo()
        { }

        public KeyWordInfo(DataRow row)
        {
            _ID = int.Parse(row["id"].ToString());
            _Value = row["value"].ToString();
            _Type = int.Parse(row["type"].ToString());
            _ArticleID = int.Parse(row["articleid"].ToString());
        }

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public string Value
        {
            get { return _Value; }
            set { _Value = value; }
        }
        public int Type
        {
            get { return _Type; }
            set { _Type = value; }
        }
        public int ArticleID 
        {
            get { return _ArticleID; }
            set { _ArticleID = value; }
        }

    }
}
